package JLB_Chapter_11;

public class ArrayClass<T> {
    private T[] array;

    public T[] getArray() {
        return array;
    }

    public void setArray(T[] array) {
        this.array = array;
    }

    public static void main(String[] args) {
        ArrayClass<String> a = new ArrayClass<String>();
        String[] array = {"成员1", "成员2", "成员3", "成员4"};
        a.setArray(array);
        for(int i = 0; i < a.getArray().length; i++) {
            System.out.println(a.getArray()[i]);
        }
    }
}
